<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends CI_Controller {

	public function __construct()
	{
		parent::__construct();
		
		$this->load->model('member_model');
		$this->load->helper('url');
	}

	public function index()
	{
		$this->member_model->add_member(array(
			'name' => 'STARTUP@'
		));
		
		$data['page_title'] = 'Your title';		
		$this->load->view('content', $data);
		$this->load->view('footer');
		
		$member = $this->member_model->get_member_by_name('STARTUP@');
		$this->load->view('user/show', array(
			'username' => $member->name 
		));
		
		$member2 = $this->member_model->get_member_by_id(1);
		$this->load->view('user/show', array(
				'username' => $member->name
		));
		
		//phpinfo();
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */